<?php
/**
 * @file
 */

function wordgame_setting($form, &$form_state) {
  $form['board'] = array(
    '#type' => 'fieldset',
    '#title' => t('Board'),
    '#collapsible' => TRUE
  );
  $form['board']['wordgame_board_columns'] = array(
    '#type' => 'textfield',
    '#title' => t('Column'),
    '#required' => TRUE,
    '#default_value' => variable_get('wordgame_board_columns', 20)
  );
  $form['board']['wordgame_board_rows'] = array(
    '#type' => 'textfield',
    '#title' => t('Rows'),
    '#required' => TRUE,
    '#default_value' => variable_get('wordgame_board_rows', 20)
  );
  $form['board']['wordgame_max_guest'] = array(
    '#type' => 'textfield',
    '#title' => t('Max Guest'),
    '#required' => TRUE,
    '#default_value' => variable_get('wordgame_max_guest', 2)
  );
  $form['board']['wordgame_max_summon'] = array(
    '#type' => 'textfield',
    '#title' => t('Max Summon'),
    '#required' => TRUE,
    '#default_value' => variable_get('wordgame_max_summon', 2)
  );
  return system_settings_form($form);
}